]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
searchDisplay: Update the selection for async searches without results
authorRui Matos <tiagomatos@gmail.com>
Thu, 5 Apr 2012 13:48:30 +0000 (15:48 +0200)
committerRui Matos <tiagomatos@gmail.com>
Fri, 6 Apr 2012 12:09:40 +0000 (14:09 +0200)
This ensures that the initial selection is always set correctly. We
were missing the empty async search results case.

https://bugzilla.gnome.org/show_bug.cgi?id=673233

js/ui/searchDisplay.js

index aeb6cf794d77673c7057a5bc627fa7e5d17f8eea..3c16e5656e641f4e52c402c49530a03b0d7ac358 100644 (file)
@@ -407,6 +407,7 @@ const SearchResults = new Lang.Class({
                 meta.resultDisplay.renderResults(metas);
             }
         }
+        this._maybeSetInitialSelection();
     },
 
     _updateResults: function(searchSystem, results) {
@@ -433,7 +434,6 @@ const SearchResults = new Lang.Class({
                 this._updateProviderResults(provider, providerResults, terms);
         }
 
-        this._maybeSetInitialSelection();
         this._content.show();
 
         return true;